@tcolor: #1890ff;

.edc-ds-popover {
  font-size: 14px;

  .ant-popover-title {
    & > div {
      position: relative;
    }

    i {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      color: #666;
      cursor: pointer;

      &:hover {
        color: #333;
      }
    }
  }

  .ant-popover-inner-content {
    padding: 0;
  }

  .ant-popover-arrow {
    &:after {
      display: block;  
    }
    display: block;
    top: 4px;
  }

  &.ant-popover-placement-bottom {
    padding-top: 8px;
  }

  .ant-select-selection { border-radius: 3px;}
}

.edc-ds-join-card {
  width: 546px;

  .edc-ds-rels {
    border-bottom: 1px solid #ededed;
    position: relative;
    z-index: 10;
    background: #fff;

    &:after {
      display: table;
      content: " ";
      clear: both;
      line-height: 0;
    }
  }

  .edc-ds-rel {
    float: left;
    width: 25%;
    cursor: pointer;
    border-right: 1px solid #ededed;

    &.selected {
      & > div {
        border: 3px solid #1890ff;
      }
    }

    & > div {
      border: 3px solid #fff;
    }

    .img {
      width: 48px;
      height: 30px;
      margin: 10px auto 8px;
      background: url(/edc/images/table-relat.png) no-repeat;
    }

    .img-inner {
      background-position: 0 0;
    }

    .img-left {
      background-position: 0 -38px;
    }

    .img-right {
      background-position: 0 -77px;
    }

    .img-outer {
      background-position: 0 -116px;
    }

    &.disabled {
      cursor: default;
      
      .img-inner {
        background-position: -52px 0;
      }

      .img-left {
        background-position: -52px -38px;
      }

      .img-right {
        background-position: -52px -77px;
      }

      .img-outer {
        background-position: -52px -116px;
      }
    }

    .txt {
      text-align: center;
      margin-bottom: 8px;
    }
  }

  .edc-ds-table-name {
    border-bottom: 1px solid #ededed;
    background: #fafafa;
    height: 36px;
    line-height: 36px;
    position: relative;
    z-index: 10;

    & > div {
      float: left;
      width: 50%;
      padding-left: 20px;
    }

    &:after {
      display: table;
      content: " ";
      line-height: 0;
      clear: both;
    }
  }

  .edc-ds-rel-fields {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;

    .opt {
      & > div {
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
        cursor: pointer;

        &:first-child {
          color: @tcolor;
        }
      }
    }

    .ant-row {
      margin-bottom: 10px;
    }

    .ant-col-2 {
      text-align: center;
      height: 28px;
      line-height: 28px;

      i {
        cursor: pointer;

        &:hover {
          color: @tcolor;
        }
      }
    }

    .ant-select {
      width: 100%;
    }
  }

  .ant-select-arrow:before{
    content: "\E603";
    display: block;
    font-family: anticon!important;
    transition: transform .2s ease;
  }

  .ant-select-open .ant-select-arrow:before {
    transform: rotate(180deg);
  }
}